import { createApp } from 'vue'
import App from './App.vue'
import waves from './directives/waves.js'  // 相对路径方案
import router from './router'
import { createPinia } from 'pinia'
import ElementPlus from 'element-plus' // 确保导入 ElementPlus
import 'element-plus/dist/index.css' // 导入样式

const pinia = createPinia();
const app = createApp(App);

app.directive('waves', waves);
app.use(pinia);
app.use(router);
app.use(ElementPlus);

// 确保在 Pinia 安装之后导入 permission.js
import './utils/permission';

app.mount('#app');
